<template>
  <div class="dashboard-content">
    <!-- Topbar -->
    <div class="topbar flex flex-sb">
      <!-- Topbar content -->
    </div>
    <!-- Main Section -->
    <div class="section flex flex-sb">
      <!-- Section Left -->
      <div class="section-left">
        <!-- Banner -->
       

        <!-- NFTs -->
        <div class="nfts">
          <!-- NFT content -->
          <div class="trending heading flex flex-sb">
            <h2>Router</h2>
          </div>
          <div class="browse">
            <div class="nft">
              <img src="../img/nft-1.jpg" alt=""/>
              <div class="title">Pomo</div>
              <div class="details flex flex-sb">
                <div class="author flex">
                  <img src="../img/user.png" alt=""/>
                  <p>Start Timing Now!</p>
                </div>
                <router-link to="/clock">
                  <div class="practice">start</div>
                </router-link>
              </div>
            </div>
            <div class="nft">
              <img src="../img/nft-2.jpg" alt=""/>
              <div class="title">Task</div>
              <div class="details flex flex-sb">
                <div class="author flex">
                  <img src="../img/user.png" alt=""/>
                  <p>Set Your To-do-list!</p>
                </div>
                <router-link to="/task">
                  <div class="practice">start</div>
                </router-link>
              </div>
            </div>
            <div class="nft">
              <img src="../img/nft-3.jpg" alt=""/>
              <div class="title">Statistics</div>
              <div class="details flex flex-sb">
                <div class="author flex">
                  <img src="../img/user.png" alt=""/>
                  <p>Check Your Usage of Time</p>
                </div>
                <router-link to="/statistics">
                 <div class="practice">start</div>
               </router-link>
              </div>
            </div>
            <div class="nft">
              <img src="../img/nft-4.jpg" alt=""/>
              <div class="title">About</div>
              <div class="details flex flex-sb">
                <div class="author flex">
                  <img src="../img/user.png" alt=""/>
                  <p>Contact with Us!</p>
                </div>
                <router-link to="/about">
                 <div class="practice">start</div>
               </router-link>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- Section Right -->
      <div class="section-right">
        <!-- Graph -->
        <div class="graph flex-c">
          <!-- Graph content -->
          <p>TOTLE</p>
          <h2>6.2 HOURS</h2>
          <img src="../img/graph.svg" alt=""/>
        </div>

        <!-- Top Creators -->
        <div class="top-creators">
          <!-- Top Creators content -->
          <div class="heading flex flex-sb">
          <h2>Our Development Team</h2>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userZSQ.jpg" alt=""/>
            <div class="creator-details">
              <h3>Shiquan Zhan</h3>
              <p>@Shiquan Zhan</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userZRX.jpg" alt=""/>
            <div class="creator-details">
              <h3>Ruixian Zhong</h3>
              <p>@Ruixian Zhong</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userZR.jpg" alt=""/>
            <div class="creator-details">
              <h3>Rui Zhan</h3>
              <p>@Rui Zhan</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userWMX.jpg" alt=""/>
            <div class="creator-details">
              <h3>Minxiang Wang</h3>
              <p>@Minxiang Wang</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userLCX.jpg" alt=""/>
            <div class="creator-details">
              <h3>Chengxuan Li</h3>
              <p>@Chengxuan Li</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userKCN.jpg" alt=""/>
            <div class="creator-details">
              <h3>Chunan Ke</h3>
              <p>@Chunan Ke</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userMS.jpg" alt=""/>
            <div class="creator-details">
              <h3>Song Ma</h3>
              <p>@Song Ma</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userXYT.jpg" alt=""/>
            <div class="creator-details">
              <h3>Yutong Xie</h3>
              <p>@Yutong Xie</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userLJY.jpg" alt=""/>
            <div class="creator-details">
              <h3>Junyi Lu</h3>
              <p>@Junyi Lu</p>
            </div>
          </div>
        </div>

        <div class="creator flex flex-sb">
          <div class="follow-creators flex">
            <img src="../img/userMHX.jpg" alt=""/>
            <div class="creator-details">
              <h3>Haoxiang Ma</h3>
              <p>@Haoxiang Ma</p>
            </div>
          </div>
        </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
name: 'Home',

};
</script>


<style scoped>
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300&display=swap");

/* BASE */

*,
*::after,
*::before {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: "Lato", sans-serif;
width: auto;
height: auto;
}

.flex{
display: flex;
justify-content: center;
align-items: center;
}

.flex-c{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}

.flex-sb{
justify-content: space-between;
}
.icon{
font-size: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

/*END BASE*/

body{
background:#fff;
color: #fff;;
transition: 0.5s ease;
width: auto;
height: auto;
}
.dashboard-content{
flex: 1;
padding: 20px;
background: #f9f9f9;
transition: 0.5s ease-out;
width: 1000px;
height:auto;
}


/*TOP BAR*/

.search{
flex: 1;
padding: 5px 10px;
background: #fff;
border-radius: 20px;
}

.search input{
width: 90%;
height: 40px;
border: none;
outline: none;
padding: 5px 10px;
color: #a1a2af;
}

.search input::-webkit-input-placeholder{
font-size: 18px;
font-weight: 400;
color: #a1a2af;
font-family: inherit;
}

.theme{
background: #fff;
margin: 0 20px;
border-radius: 20px;
font-size: 25px;
padding: 5px;
}

.dark,
.light{
margin: 0 5px;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
}

.dark.active,
.light.active{
background: #f9f9f9;
}

.light{
color: #fdb600;
}

.user{
background: #fff;
padding: 5px 10px;
color: #1e1e2d;
border-radius: 20px;
cursor: pointer;
}

.user img{
width: 40px;
}

.user p{
margin: 0 6px;
}

.notification{
background: #fff;
padding: 10px;
border-radius: 20px;
margin-right: 20px;
}

/*END TOP BAR*/

/*SECTION*/

.section{
margin: 30px 0;
height: auto;
width: auto;
}

/*SECTION LEFT*/

.section-left{
flex: 1;
padding: 15px;
height: 100%;
width: auto;
}

.banner{
width: 100%;
height: 100px;
border-radius: 18px;
background: #55c960 url(../img/bannerBG.svg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
transition: 0.3s ease;
padding: 20px;
position: relative;
color: #fff;
}

.banner h2{
font-size: 28px;
font-weight: 700;
}

.banner img{
width: 420px;
position: absolute;
bottom: 0;
right: -20px;
pointer-events: none;
}

.btn{
padding: 10px 16px;
text-decoration: none;
display: inline-block;
background: #161622;
color: #fff;
border-radius: 25px;
font-size: 18px;
font-weight: 400;
margin-top: 20px;
transition: 0.4s linear;
}

.nfts{
padding: 0 40px;
margin: -50px 0;
}

.heading h2{
font-size: 30px;
font-weight: 600;
color: #1e1e2d;
}

.heading p{
font-size:20px;
color: #38c947;
cursor: pointer;
}

/*CATEGORIES*/

.categories{
margin: 20px 0;
}

.category{
background: #fff;
padding: 6px 15px;
border-radius: 25px;
cursor: pointer;
color: #161622;
transition: 0.3s linear;
}

.category .icon{
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 8px;
background: #f2f2f2;
transition: 0.3s linear;
}

/*BROWSE*/
.browse{
display: grid;
grid-template-columns: 1fr 1fr;
}

.nft{
background-color: #fff;
padding: 10px 20px 20px 20px;
border-radius: 25px;
transition: 0.4s linear;
margin: 5px 30px;
}

.nft img{
width: 100%;
height: 150px;
border-radius: 20px;
display: block;
margin: 0 auto;
}

.author img{
width: 40px;
height: 40px;
margin-right: 10px;
}

.title{
font-size: 18px;
color: #161622;
font-weight: 700;
margin: 10px 0;
letter-spacing: 1px;
}

.author{
font-size: 14px;
}

.practice{
background: rgba(124,248,136,0.34);
padding: 15px 15px;
border-radius: 6px;
color: #38c947;
font-weight: 600;
cursor: pointer;
}

/*END BROWSE*/
/*SECTION RIGHT*/

.section-right{
padding: 10px;
flex: 0 0 30%;
margin-top: -300px;
margin-right: -50px;
}

.graph{
width: 75%;
height: 130px;
background: #fff;
border-radius: 20px;
padding-top: 50px;
position: relative;
transition: 0.3s linear;
margin-top: 100px;
bottom: -110px;
}

.graph h2{
font-size: 20px;
font-weight: 700;
margin: 2px 0;
color: #161622;
}

.graph img{
width: 100%;
pointer-events: none;
}

.top-creators{
width: 75%;
margin-top: 15px;
padding: 10px;
background: #fff;
border-radius: 20px;
transition: 0.3s linear;
bottom: -100px;
position: relative;
}

.top-creators .heading{
margin-bottom: 5px;
}

.top-creators .heading h2{
font-size: 15px;
}

.follow-creators img{
width: 35px;
margin-right: 30px;
}

.follow-creators h3{
font-size: 12px;
color: #13131d;
}

.follow-creators p{
font-size: 13px;
}

/*END DASHBOARD-CONTENT*/

/*DARK MODE*/

.darkMode{
background: #13131d;
}

.darkMode .dashboard{
box-shadow: 0 0 3px 1px rgba(255 ,255 ,255 ,0.22);
}

.darkMode .sidebar{
background: #161622;
}

.darkMode .menu-item:hover,
.darkMode .menu-item.active,
.darkMode .brand{
color: #fff;
}

.darkMode .log-out .menu-item:hover{
color: #f2615a;
}

.darkMode .border{
background: #262635;
}

.darkMode .dashboard-content{
background: #1e1e2d;
}

.darkMode .search,
.darkMode .search input,
.darkMode .user,
.darkMode .theme,
.darkMode .notification{
background: #161622;
} 

.darkMode .user,
.darkMode .notification,
.darkMode .heading h2{
color: #fff;
}

.darkMode .dark.active,
.darkMode .light.active{
background: #1e1e2d;
}

.darkMode .banner{
background: #38c947 url(../img/bannerBG.svg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
color: #161622;
}

.darkMode .btn{
background: #fff;
color: #161622;
}

.darkMode .category{
color: #fff;
background: #161622;
}

.darkMode .category .icon{
background: #262635;
}

.darkMode .nft{
background: #161622;
}

.darkMode .title{
color: #fff;
}

.darkMode .top-creators,
.darkMode .graph{
background: #13131d;
border: 0;
}

.darkMode .graph h2,
.darkMode .creator-details h3{
color: #fff;
}

/*END DARK MODE*/

/*RESPONSIVENESS*/

@media(max-width:1250px){
.dashboard{
width: 100%;
margin: 0;
border-radius: 0;
}
}

@media(max-width:1200px){
.sidebar{
padding: 20px;
}
.dashboard-content{
padding: 15px;
}
.category{
padding: 4px 12px;
}
.creator{
flex-direction: column;
margin: 10px 0;
}
.follwing{
margin: 5px 0;
}
.section-right{
margin-top: -265px;
}
}

@media(max-width:1130px){
.dashboard-content{
padding: 30px;
}
.section{
flex-direction: column;
}
.section-left{
width: 100%;
height: 100%;
}
.section-right{
margin-top: 0;
width: 100%;
display: flex;
}
.graph{
width: 55%;
height: auto;
margin: 0 auto;
border: 1px solid rgba(161, 162, 175, 0.3);
}
.top-creators{
width: 40%;
margin: 40px auto;
border: 1px solid rgba(161, 162, 175, 0.3);
}
.creator{
flex-direction: row;
}
.nft{
margin: 15px;
}
.nft img{
height: auto;
}
.sidebar{
padding: 20px 10px;
flex: 0 0 10%;
align-items: center;
}
.brand{
display: none;
}
.menu-item{
margin: 40px auto;
}
.menu-item p{
display: none;
}
}

@media(max-width:780px){
.dashboard-content{
padding: 0;
}
.banner{
text-align: center;
margin: 0 auto;
}
.banner h2{
font-size: 35px
}
.text{
width: 100%;
}
.banner img{
display: none;
}
.search{
flex: 0 0 50px;
height: 50px;
width: 50px;
}
.search input{
display: none;
}
.topbar{
flex-direction: row-reverse;
width: 80%;
margin: 0 auto;
margin-top: 30px;
}
.trending{
padding: 0px;
margin-top: -350px
}
.heading h2{
font-size: 20px;
}
.categories{
display: grid;
grid-template-columns: repeat(3,fr);
}
.category{
margin: 10px auto;
}
.section-right{
flex-direction: column-reverse;
}
.top-creators{
width: 70%;
}
}

@media(max-width:640px){
.sidebar{
display: none;
}
.user{
margin-right: 10px;
}
.browse{
grid-template-columns: 1fr;
}
.section-left,
.section-right{
padding: 0;
}
.graph,
.top-creators,
.banner{
width: 90%;
}
.nft{
margin: 10px 0;
}
}

@media(max-width:500px){
.notification,
.search{
display: none;
}
}
@media(max-width:380px){
.banner,
.browse{
width: 100%;
}
.graph,
.top-creators{
width: 95%;
}
.banner{
border-radius: 0;
}
.categories{
grid-template-columns: 1fr 1fr;
}
}
@media(max-width:300px){
.topbar{
flex-direction: column-reverse;
justify-content: center;
}
.user{
margin-bottom: 10px;
}
.banner h2{
font-size: 30px;
}
.practice{
text-align:  center;
padding: 5px;
}
}
/*END RESPONSIVENESS*/
</style>
  